<?php

namespace app\admin\model\yexam;

use think\Model;

/**
 * 用户套餐购买表
 */
class UserCombo extends Model
{
    protected $name = 'yexam_user_combo';
    protected $autoWriteTimestamp = 'int';
    protected $dateFormat = 'Y-m-d H:i:s';
    protected $createTime = "pay_time";
    protected $updateTime = false;
    //==== 到期时间
    protected function getInvalidTimeAttr($value){
        return date("Y-m-d H:i:s",$value);
    }
}